package com.zhu.SupermarketInventoryManagement.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("")
public class LoginController {

    @GetMapping("")
    public ModelAndView index() {
        ModelAndView mav = new ModelAndView();
        mav.setViewName("admin/login");
        return mav;
    }

    @GetMapping("/admin/login")
    public ModelAndView userList() {
        ModelAndView mav = new ModelAndView();
        mav.setViewName("admin/login");
        return mav;
    }
}
